Skip to content

Instantly share code, notes, and snippets.

#include <metal_stdlib>
#include <SwiftUI/SwiftUI.h>
using namespace metal;
[[ stitchable ]] half4 simpledistort(float2 pos, SwiftUI::Layer l, float4 boundingRect, float progress, float distortion) {
float2 size = boundingRect.zw;
float2 uv = pos / size;
float2 center = float2(0.5, 0.5);
float2 delta = uv - center;
@karpathy
karpathy / microgpt.py
Last active February 15, 2026 07:16
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@droeding
droeding / MEMORY-SYSTEM-SETUP.md
Created February 14, 2026 10:29
OpenClaw Memory System (Mem0 Self-Hosted) - Setup Guide

OpenClaw Memory System (Mem0 Self-Hosted)

Komplette Anleitung für persistentes Langzeitgedächtnis mit Mem0, Qdrant und Ollama.

Architektur

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│    OpenClaw     │────▶│   Mem0 API      │────▶│     Qdrant      │
│ Extension │ │ :8050 │ │ :6333 │